//
//  ThirdPayUtil.h
//  ScholarsBridge
//
//  Created by guggle on 17/2/14.
//  Copyright © 2017年 mingthink. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ThirdPayUtil : NSObject

+ (void)registerWXPay;
#pragma mark - 微信支付结果回调
+ (void)onResp:(BaseResp*)resp withWindow:(UIWindow *)window;

#pragma mark- application 代理
+ (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options withDelegate:(id<WXApiDelegate>) delegate;
+ (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation withDelegate:(id<WXApiDelegate>) delegate;
+ (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url withDelegate:(id<WXApiDelegate>) delegate;

/**
 支付宝支付

 @param orderStr 订单字符串
 @param resultBlock 支付返回结果
 */
+ (void)alipayWithOrderString:(NSString *)orderStr resultBlock:(payResultBlock)resultBlock;

/**
 微信支付

 @param orderDict 订单字典
 */
+ (void)wxpayWithOrderDictionary:(NSDictionary *)orderDict;

@end
